export default {
  showQuality(status) {
    let name = ''
    switch (status) {
      case '0':
        name = '无'
        break
      case '1':
        name = '优秀'
        break
      case '2':
        name = '良好'
        break
      case '3':
        name = '预警'
        break
      default:
        name = '无'
        break
    }
    return name
  },
  showClass(status) {
    let classNm = ''
    switch (status) {
      case '0':
        classNm = 'info'
        break
      case '1':
        classNm = 'success'
        break
      case '2':
        classNm = 'warning'
        break
      case '3':
        classNm = 'danger'
        break
      default:
        classNm = 'info'
        break
    }
    return classNm
  },
  showIcon(status) {
    let iconNm = ''
    switch (status) {
      case '0':
        iconNm = 'iconEmpty'
        break
      case '1':
        iconNm = 'iconExcellent'
        break
      case '2':
        iconNm = 'iconGood'
        break
      case '3':
        iconNm = 'iconAbnorm'
        break
      default:
        iconNm = 'iconEmpty'
        break
    }
    return iconNm
  }
}
